package cn.tedu.csmall.product.mapper;


import cn.tedu.csmall.product.pojo.entity.Category;
import cn.tedu.csmall.product.pojo.vo.CategoryListVO;
import cn.tedu.csmall.product.pojo.vo.CategoryStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    CategoryStandardVO getStandardById(Long id);
    List<CategoryListVO> listByParentId(Long parentId);
    List<CategoryListVO> list();
}
